package com.itheima.bigevent.mapper;

import com.itheima.bigevent.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author curry
* @description 针对表【user(用户表)】的数据库操作Mapper
* @createDate 2024-08-18 16:12:47
* @Entity com.itheima.bigevent.pojo.User
*/
@Mapper
public interface UserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertByUsernameAndPassword(String username, String password);

    int insertSelective(User record);

    User selectByUsername(@Param("username") String username);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    void update(User user);

    void updateAvatar(@Param("avatarUrl") String avatarUrl, @Param("id") Integer id);

    void updatePwd(@Param("md5String") String md5String, @Param("id") Integer id);
}
